//@auther foolbread
//@time 2016-03-09
//@file ApnsHttp2/client/client_message.go
package client

import (
	"sync"
)

type messageStatus struct {
	sn     string
	status int
}

func newMessageStatus(sn string, status int) *messageStatus {
	ms := new(messageStatus)
	ms.sn = sn
	ms.status = status

	return ms
}

type messageMap struct {
	r *sync.RWMutex
	m map[string]*messageStatus
}

func newMessageMap() *messageMap {
	mm := new(messageMap)
	mm.r = new(sync.RWMutex)
	mm.m = make(map[string]*messageStatus)

	return mm
}
